import request from '@/utils/request';

const prefix = '/apharbor'

export async function getImageDetail(id) {
  return request(`${prefix}/api/v1/images/image/${id}`, {
    method: 'GET',
  });
}

export async function getImageVersions(data) {
  return request(`${prefix}/api/v1/images/imageVersion`, {
    method: 'GET',
    params:data
  });
}
export async function deleteImageVersion(id) {
  return request(`${prefix}/api/v1/images/imageVersion/${id}`, {
    method: 'DELETE',
  })
}



export async function getPublicImageDetail(id) {
  return request(`${prefix}/api/v1/images/image/${id}`, {
    method: 'GET',
  });
}

